package com.eurobcoin.user;

import java.io.Serializable;

public class UserModel implements Serializable {

	private static final long serialVersionUID = -5560448086365329442L;

	private int id;
	
	private String name;
	
	private String email;
	
	private String locale;
	
	private String password;
	
	private String salt;
	
	private int role;
	
	private String textualRole;
	
	private boolean emailConfirmed;

	public boolean isEmailConfirmed() {
		return emailConfirmed;
	}

	public void setEmailConfirmed(boolean emailConfirmed) {
		this.emailConfirmed = emailConfirmed;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getLocale() {
		return locale;
	}

	public void setLocale(String locale) {
		this.locale = locale;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public int getRole() {
		return role;
	}

	public void setRole(int role) {
		this.role = role;
	}

	public String getTextualRole() {
		return textualRole;
	}

	public void setTextualRole(String textualRole) {
		this.textualRole = textualRole;
	}
	
	public void reset() {
		this.id = 0;
		this.name = null;
		this.email = null;
		this.locale = null;
		this.password = null;
		this.salt = null;
		this.role = 0;
		this.textualRole = null;
		this.emailConfirmed = false;
	}
	
}
